33c232dca43a2a17945395f4660e66ff2c3bdddc,de.metas.handlingunits.base/src/main/java/de/metas/handlingunits/allocation/transfer/HUTransferService.java,HUTransferService,action_SplitCU_To_NewCU,#I_M_HU#I_M_Product#I_C_UOM#BigDecimal#,122
Before Change
final HUProducerDestination destination = HUProducerDestination.ofVirtualPI();
HUSplitBuilderCoreEngine.of(huContext, cuHU, request, destination)
.withPropagateHUValues()
.performSplit();
return destination.getCreatedHUs();
}
After Change
final HUProducerDestination destination = HUProducerDestination.ofVirtualPI();
HUSplitBuilderCoreEngine.of(huContext, cuHU, request, destination)
.withPropagateHUValues()
.withAllowPartialUnloads(true) // we allow partial loads and unloads so if a user enters a very large number, then that will just account to "all of it" and there will be no error
.performSplit();
return destination.getCreatedHUs();